package cn.kgc.service;

import cn.kgc.utils.BaseException;
import cn.kgc.vo.DmUserVo;
import cn.kgc.vo.TokenVo;

import java.util.concurrent.ExecutionException;


public interface UserService {

    //登录业务功能
    Object[] queryLogin(String phone, String secretPassword) throws Exception;

    //生成token
    String generateToken(String wxid_phone);

    //保存token,用户信息放入到redis中
     void saveToken(String token, DmUserVo dmuserVo);

    //更换令牌
    TokenVo replaceToken(String token) throws BaseException;

    //发送登录验证码
    void sendLoginCode(String phone) throws BaseException, ExecutionException, InterruptedException;

    //手机验证码校验
    Object[]  checkPhoneLoginCode(String phone, String vcode) throws Exception;




}
